import '../../base/beans/jcring_bean.dart';

///数据的抽象接口
///主要包括数据的功能
abstract class DataProxy {
  void init();

  ///保存女性健康周期设置
  Future<bool> saveWomanHealthData(
      String userToken,
      String periodStartTime,
      String periodTwoStartTime,
      int periodLenth,
      int period,
      int regularly,
      int tracking);

  ///查询女性健康周期设置
  Future<Map<String, dynamic>> queryWomanHealthData(String userToken);

  ///保存女性健康周期设置
  Future<bool> saveHealthRecordData(
      String userToken,
      String day,
      int flowRate,
      int colorRate,
      int dysmenorrhea,
      List<int> symptoms,
      int leucorrhea,
      int mood,
      int ovulation,
      int love,
      String notes);

  ///查询女性健康周期设置
  Future<List<MenstrualRecord>> queryHealthRecordData(
      String userToken, String startDate, String endDate);
}
